import request from '../utils/request';

// 登录接口
export const login = ({ mobile, code }) => {
  return request({
    url: '/v1_0/authorizations',
    method: 'post',
    data: { mobile, code },
  });
};

// 获取用户个人资料
export function getProfile() {
  return request({ url: '/v1_0/user/profile' });
}
